package net.lab1024.sa.admin.module.system.login.domain;

import lombok.Data;
import net.lab1024.sa.base.common.domain.RequestUser;
import net.lab1024.sa.base.common.enumeration.GenderEnum;
import net.lab1024.sa.base.common.enumeration.UserTypeEnum;
import java.io.Serializable;

/**
 * 请求员工登录信息
 *
 * @Author 1024创新实验室: 善逸
 * @Date 2021/8/4 21:15
 * @Wechat zhuoda1024
 * @Email lab1024@163.com
 * @Copyright  <a href="https://1024lab.net">1024创新实验室</a>
 */
@Data
public class RequestEmployee implements RequestUser, Serializable {

    // 员工id
    private Long employeeId;

    // 枚举字段
    private UserTypeEnum userType;

    // 登录账号
    private String loginName;

    // 员工名称
    private String actualName;

    // 头像
    private String avatar;

    // 枚举字段
    private Integer gender;

    // 手机号码
    private String phone;

    // 部门id
    private Long departmentId;

    // 部门名称
    private String departmentName;

    // 职务级别ID
    private Long positionId;

    // 邮箱
    private String email;

    // 是否禁用
    private Boolean disabledFlag;

    // 是否为超管
    private Boolean administratorFlag;

    // 备注
    private String remark;

    // 请求ip
    private String ip;

    // 请求user-agent
    private String userAgent;

    @Override
    public Long getUserId() {
        return employeeId;
    }

    @Override
    public String getUserName() {
        return actualName;
    }
}
